package com.tf.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;        // 评价用户ID
    private Long productId;     // 商品ID
    private Long orderId;       // 关联订单ID
    private String content;     // 评价内容
    private Integer rating;     // 评分(1-5)
    private LocalDateTime createTime;
}
